﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <!--Include Css-->
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/SuperFish.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/nivo-slider.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/jquery.fancybox-1.3.4.css")" rel="stylesheet" type="text/css" />
    <!--Scripts per Superfish-->
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/superfish.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/supersubs.js")" type="text/javascript"></script>
    <!--Scripts per Ajax-->
    <script src="@Url.Content("~/Scripts/MicrosoftAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftMvcAjax.debug.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/MicrosoftMvcValidation.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jQueryFixes.js")" type="text/javascript"></script>
    <!--Scripts per Nivoslider-->
    <script src="@Url.Content("~/Scripts/jquery.nivo.slider.pack.js")" type="text/javascript"></script>
    <!--Scripts per Fanctybox-->
    <script src="@Url.Content("~/Scripts/jquery.mousewheel-3.0.4.pack.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.fancybox-1.3.4.pack.js")" type="text/javascript"></script>
    <script type="text/javascript">

        $(document).ready(function () {
            $("ul.sf-menu").superfish({
                delay: 500,                                   // 0.5 delay on mouseout 
                animation: { opacity: 'show', height: 'show'}   // fade-in and slide-down animation 
            });
        }); 
 
    </script>
    <script type="text/javascript">
        $(window).load(function () {
            $('#slider').nivoSlider({
                effect: 'random',
                controlNav: false,
                keyboardNav: true,
                pauseTime: 3500,
                prevText: 'Precedente', // Prev directionNav text
                nextText: 'Successiva' // Next directionNav text

            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.cartSummary').hide();
            $('.cartImg').hover(
        function () {
            $('.cartSummary').fadeIn(900, "linear");
            return false;
        },
        function () {
            $('.cartSummary').fadeOut(600, "linear");
        }
                              );
        });

    </script>
</head>
<body>
    <div class="container_12 clearfix">
        <div id="header" class="grid_12 alpha omega">
            <!--inizio prima riga-->
            <div class="prefix_5 grid_4 suffix_1 title alpha">
                <h1>
                    El Charro E-Commerce
                </h1>
            </div>
            <div class="grid_3" style="float: none;">
                <a href="@Url.Action("Details", "Cart", new { area = "User" })">
                    <img alt="Dettagli Carrello" width="60" height="60" class="cartImg" src="/Content/Images/Icons/shopping_cart.png" />
                </a>
                @Html.Partial("_LogOnPartial")
            </div>
            <div class="cartSummary">
                @Html.Action("CartSummary", "Cart", new { area = "User" })
            </div>
            <!--fine prima riga-->
            <!--inizio seconda riga-->
            <div id="primary-nav" class="grid_9 omega">
                @{Html.RenderAction("CategoryMenu", "Category", new { area = "User" });}
            </div>
            <div class=" grid_3 ">
                @if ((int)Session["UserId"] != 0)
                {
                    <div class="menucontainer">
                        <ul id="nav" class="sf-menu">
                            <li><a href="#">Gestione</a>
                                <ul class="paddaloBot">
                                    <li><a href="/User/Customer/Edit">Dati Personali</a></li>
                                </ul>
                                <ul class="paddaloBot">
                                    <li><a href="/User/Location/Index">Recapiti Spedizioni</a></li>
                                </ul>
                                <ul class="paddaloBot">
                                    <li><a href="/User/Order/Index">Order History</a></li>
                                </ul>
                                <ul class="paddaloBot">
                                    <li><a href="/Account/ChangePassword">Password</a></li>
                                </ul>
                                <ul class="paddaloBot">
                                    <li><a href="/User/Customer/ShowBonusAndRecruited">Bonus e Reclutati</a></li>
                                </ul>
                            </li>
                        </ul>
                    </div>
                }
                else
                { 
                    <div class="menucontainer">
                        <ul id="nav">
                            <li class="nascosto">&nbsp;</li>
                        </ul>
                    </div>
                }
            </div>
            <!--fine seconda riga-->
        </div>
        <!--inizio terza riga-->
        <div class=" grid_2 alpha omega">
            @{Html.RenderAction("ClothingTypeMenu", "ClothingType", new { area = "User" });}
        </div>
        <div id="main" class="grid_10 omega alpha sfondo">
            @RenderBody()
        </div>
    </div>
    <!--fine terza riga-->
</body>
</html>
